package com.vnp.cooking;

import java.util.ArrayList;

import com.vnp.cooking.adapter.ThemBoSuuTapAdapter;
import com.vnp.cooking.bean.ObjBST;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ListView;

public class ListTenBoSuuTapActivity extends Activity implements
		OnClickListener , OnItemClickListener{

	ImageButton btnBack;
	ListView listTenBST;
	ThemBoSuuTapAdapter adapter;
	ArrayList<ObjBST> objBSTs = new ArrayList<ObjBST>();

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_list_ten_bo_suu_tap);

		btnBack = (ImageButton) findViewById(R.id.btn_back);
		listTenBST = (ListView) findViewById(R.id.list_tenbst);
		adapter = new ThemBoSuuTapAdapter(ListTenBoSuuTapActivity.this, objBSTs);

		init();
	}

	public void init() {
		btnBack.setOnClickListener(this);
		listTenBST.setAdapter(adapter);
		listTenBST.setOnItemClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_back:
			finish();
			break;

		default:
			break;
		}
	}

	@Override
	public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
		// TODO Auto-generated method stub
		
	}
}
